package com.ngkj.zmfptCommon.common.bean;

import lombok.Getter;
import lombok.ToString;

import java.io.Serializable;

/**
 * @author ChenHN
 * @since 2021/10/8 creation
 **/
@Getter
public class RpcRequestMessage implements Serializable{

    /**
     * 调用的接口全限定名，服务端根据它找到实现
     */
    private String interfaceName;

    /**
     * 调用接口中的方法名
     */
    private String methodName;

    /**
     * 方法返回的类型
     */
    private Class<?> returnType;

    /**
     * 方法参数类型数组
     */
    private Class[] parameterTypes;


    /**
     * 方法参数值数组
     */
    private Object[] parameterValue;

    public RpcRequestMessage() {
    }

    public RpcRequestMessage(String interfaceName, String methodName, Class<?> returnType, Class[] parameterTypes, Object[] parameterValue) {
        this.interfaceName = interfaceName;
        this.methodName = methodName;
        this.returnType = returnType;
        this.parameterTypes = parameterTypes;
        this.parameterValue = parameterValue;
    }


}
